<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
String path = request.getContextPath();
%>
<style type="text/css">
@charset "utf-8";
.fm_logined { width:88%; height:60px; line-height:30px; margin-left:auto; margin-right:auto; text-align:center;overflow:hidden;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/newstyle.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/common.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src='<%=path%>/js/vnv/commonForMutual.js' charset="UTF-8"></script>
<script type='text/javascript' src='<%=path%>/dwr/util.js'></script>
<script type='text/javascript' src='<%=path%>/dwr/engine.js'></script>
<script language="javascript">
	function refreshVericode(imgObjName) {
		var now = new Date();
		getObj(imgObjName).src = '<%=path%>/page/util/verifyImage.jsp?now='+now.getTime().toString();
	}
	function logon(type) {
	document.getElementById("logon_atype").value = type;
		
		if(type == "A") { //个人
			if(emptyValidate(getObj("logon_person_email"),"Email或手机") != "") {
				return false;
			}		
			if(emptyValidate(getObj("logon_person_passPerson"),"登录密码") != "") {
				return false;
			}
			if(emptyValidate(getObj("logon_person_sys_vericode"),"校验码") != "") {
				return false;
			}				
		} 
		document.getElementById("url").value=location.href;
		
		document.forms[0].submit();
	}
	
	function showPanel(showPanel,hidePanel) {
		setClass(showPanel,'LoginButtonCurrent');
		setClass(hidePanel,'LoginButtonHover');
	}
	
	function showDiv(showDiv,hideDiv) {
		setDisplay(showDiv,'block');
		setDisplay(hideDiv,'none');
	}
	function pers() {
		if(event.keyCode==13){
			logon('A');
		}
	}
	function corp() {
		if(event.keyCode==13){
			logon('B');
		}
	}


_uacct = "UA-1819456-1";
urchinTracker();
</script>
<jsp:include page="/page/common/bankFramePage/message.jsp"/>
<form action="<%=path%>/logon.do" method="post">	     
	     <div class="loginbar">
		    <div class="loginbar_l"></div>
			<h1>用户登录</h1>
			<div class="loginbar_r"></div>
		 </div>
		 <logic:notPresent name="sessionAccountSummary">
	     <div class="loginbox">

			<div class="fm_tr"><label>Email或手机</label><input name="logon_person_email" type="text" size="18" />
			</div>
			<div class="fm_tr"><label>登录密码</label><input name="logon_person_passPerson" type="password" size="18" />
			</div>
			<div class="fm_tr"><label>校验码</label><input name="logon_person_sys_vericode" type="text" size="7" /><img name="logon_sys_vericode_image0" src="<%=path%>/page/util/verifyImage.jsp" width="60" height="24" align="absmiddle" />
			</div>
			<div class="fm_button"><input type="button" onclick="location.href='<%=path%>/toRegister.do'" value="注册" class="but_reg" />
			  <input type="button" name="Submit" value="登录" class="but_reg" onclick="logon('A')" />
			</div>

		  </div>
		  </logic:notPresent>
		  <!-- 用户已登录 -->
	  	  <logic:present name="sessionAccountSummary">
		  <div class="loginbox">
			<div class="fm_logined">您好：<br>	
			<span class="fontred12">	
				<logic:notEmpty name="sessionAccountSummary" property="account.email">
					<bean:write name="sessionAccountSummary" property="account.email"/>
				</logic:notEmpty>
				<logic:empty name="sessionAccountSummary" property="account.email">
					<bean:write name="sessionAccountSummary" property="account.mobile"/>
				</logic:empty>
				</span>
				</div>
			<div class="fm_tr1">欢迎您的登录
			</div>
			<div class="fm_tr1">您当前的积分:<span class="fontred12_b1"><ad:Score><bean:write name="sessionAccountSummary" property="account.id"/></ad:Score></span></div>
			<div class="fm_button"><input type="button" onclick="location.href='<%=path%>/logout.do?from=integral'" value="马上退出" class="but_exit" />
			</div>
		  </div>
		  </logic:present>
		<input type="hidden" id="logon_atype" name="logon_atype" value="A" />
		<input type="hidden" id="from" name="from" value="integral"/>
		<input type="hidden" id="url" name="url"/>
		<input type="hidden" id="integral" name="integral" value="1"/>
</form>